package com.yonyou.brigade.util.operateutil;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StringUtils {

    public static String lowerFirstChar(String name) {
        char[] cs = name.toCharArray();
        cs[0] += 32;
        return String.valueOf(cs);

    }

    /**
     * 判断字符串中是否含有汉字
     * @param countname
     * @return
     */
    public static boolean generateJudgment(String countname) {
        Pattern p = Pattern.compile("[\u4e00-\u9fa5]");
        Matcher isNum = p.matcher(countname);
        if (isNum.find()) {
            return true;
        }
        return false;
    }
}
